//
//  SuggestDishTask.m
//  ZooNgonDoiOS
//
//  Created by Anh Jun Linh Tinh on 7/5/12.
//  Copyright (c) 2012 Personal. All rights reserved.
//

#import "SuggestDishTask.h"

@implementation SuggestDishTask
-(id)initWithText:(NSString *)text{
    self = [super init];
    if(self){
        _text = text;
    }
    return self;
}

-(void)doExecute{
    NSDictionary *param = [NSDictionary dictionaryWithObject:_text forKey:@"text"];   
    [[RKObjectManager sharedManager].client get:@"/dish/suggest" queryParameters:param delegate:self];
}

-(void)request:(RKRequest *)request didFailLoadWithError:(NSError *)error{
    
}

-(void)request:(RKRequest *)request didLoadResponse:(RKResponse *)response{
    
}

@end
